﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddXml.aspx.cs" Inherits="AddXml" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>操作四：添加一个节点</title>
    <script language="javascript" type="text/javascript" src="../../js/jquery-1.3.2.js"></script>
    <link href="../../CSS/css.css" rel="stylesheet" type="text/css" />
      <script language="javascript" type="text/javascript">
      function AddData()
      {
        if($("#tbaddtitle").val()=="")
        {
         alert("您还没有输入标题!");
         $("#tbaddtitle").focus();
         return false;
        }
        if($("#tbaddcontent").val()=="")
        {
         alert("您还没有输入内容!");
         $("#tbaddcontent").focus();
         return false;
        }
        if($("#tbaddcontent").val().indexOf("'")!=-1)
        {
         alert("输入内容包含特殊版本!");
         $("#tbaddcontent").focus();
         return false;
        }
      }
      </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="MainContentCommon">
            <div class="tit">
                &gt;&gt;&gt;添加系统设置
            </div>
            <div class="con">
            <div id="GerneralDivNoBorder">
            标题：<asp:TextBox ID="tbaddtitle" runat="server" Width="200px"></asp:TextBox>
            <br />
            内容：<asp:TextBox ID="tbaddcontent" runat="server" Width="600px"></asp:TextBox>&nbsp;<br />
            提示：<asp:TextBox ID="tbtip" runat="server" Width="600px"></asp:TextBox>&nbsp;<br />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="Button1" runat="server" OnClientClick="return AddData();" OnClick="Button1_Click" Text="添 加" CssClass="buttonface"/>
            <input type="button" value="返 回" onclick="location.href='SysEnvConfig.aspx'" class="buttonface" />
            </div>
            </div>
        </div>
    </form>
</body>
</html>
